package lab02.test35;

/**
 * Created by 婷婷 on 2017/11/22.
 */
public class Worker extends Employee{
    @Override
    public double computerSalary() {
        return days*daySalary;
    }
    double daySalary;
    double days;

    public Worker(){}

    public Worker(double daySalary, double days){
        this.days=days;
        this.daySalary=daySalary;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+"性别："+sex+"\n"+"一般工人工资："+daySalary*days;
    }
}
